package pack0623;

import org.w3c.dom.ls.LSOutput;

public class Bird1 {
    String name;
    String type;
    int age;
    int legs;
    public  void catchmice(){
        System.out.println("会抓老鼠");
    }

    public static void main(String[] args) {
        Bird1 p=new Bird1();
        p.name="大喵";
        p.type="橘猫";
        p.age=5;
        p.legs=4;
        System.out.println(p.name+" "+p.type+" "+p.age+"岁 "+p.legs+"只爪");
        p.catchmice();
    }

}
